<?php
/**
 * Title: HTML Table generator
 * Description: Generates XHTML 1.0 Strict tables
 * @requires The LinkedList package. The packages is used to mange rows and table cells
 * @author Oddleif Halvorsen | leif-h@online.no
 * @version 1.0
 */

include_once("TableCell.php");

class Td extends TableCell{
	function Td($content){
		parent::TableCell($content);
	}
	
	/**
	 * Generates the html code for the td tag
	 * with all the provied attributes
	 * @return The html code for the td tag
	 */
	function getHtml(){	
		$td = "<td";
		
		if(parent::getAttributes() != FALSE)
			$td .= parent::getAttributes();

		$td .= (">" . $this->content . "</td>");
		
		return $td;
	}
}
?>